import VueRouter from 'vue-router'
import Vue from 'vue'

const Home = () => import('../view/home');
const Mine = () => import('../view/mine');
Vue.use(VueRouter)

const routes=[
    {
      path:'',
      redirect:'/home'
    },
    {
    path:'/home',
    component:Home
    },
    {
        path:'/mine',
        component:Mine
    },
]
const router=new VueRouter({
    routes,
    mode:'history'
})

export default router